package com.focus.wecenter.pojo.dto;

import java.io.Serializable;
import java.util.Date;

/**
 * 用于问题和文章显示的共同类
 *
 * @author Lv Jing
 * @date 2018年01月09日 9:54
 */
public class QuestionArticle implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;
    private String title;
    private String content;
    private Integer commentCount;
    private String userID;
    private String username;
    private Date createTime;

    public QuestionArticle(Integer id, String title, String content, Integer commentCount, String userID, String username, Date createTime) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.commentCount = commentCount;
        this.userID = userID;
        this.username = username;
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public String getUserID() {
        return userID;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
